package com.BlogPark.common.utis;

/**
 * @Auther: MFM
 * @Date: 2022/8/21 - 08 - 21 - 22:06
 * @version: 1.0
 */

public class IdUtils {
    public static String generateCommentId(Integer userId) {
        String CommentId = new String("R");
        CommentId += System.currentTimeMillis();
        CommentId += userId;
        return CommentId;
    }

    public static String generateArticleId(Integer userId) {
        String ArticleId = new String("A");
        ArticleId += System.currentTimeMillis();
        ArticleId += userId;
        return ArticleId;
    }
}
